<extend name="Index:index" />
    <block name="nav1">
        <ul class="breadcrumb">
            <li>
                <i class="icon-home home-icon"></i>
                <a href="#">Admin</a>
            </li>
            <li class="active">用户管理</li>
        </ul><!-- .breadcrumb -->
    </block>

    <block name="nav2">
        <h1>
        角色-权限管理
            <small>
                <i class="icon-double-angle-right"></i>
                角色信息列表
            </small>
        </h1>
    </block>
    <block name="main">
        <div class="row">
            <div class="col-xs-12">
                <table class="table auser">
                    <thead>
                        <tr>
                            <th>id</th>
                            <th>权限名</th>
                            <th>模块名(控制器)</th>
                            <th>方法</th>
                            <th>状态</th>
                            <th>操作</th>
                            
                        </tr>
                    </thead>
                    <tbody>
                        <volist name="list" id="v">
                            <tr>
                                <td><{$v.id}></td>
                                <td><{$v.name}></td>
                                <td><{$v.cname}></td>
                                <td><{$v.mname}></td>
                                <td><{$v['type'] == 1?'启用':'禁用'}></td>
                                <td>
                                    <a href="<{:U('Power/del',array('id'=>$v['id']))}>" class="btn btn-danger btn-sm a">删除</a>
                                    <a href="<{:U('Power/edit',array('id'=>$v['id']))}>" class="btn btn-warning btn-sm a">修改</a>
                                    
                                </td>
                            </tr>
                        </volist>
                    </tbody>

                </table>
            </div>
        </div>
    </block>